## Process this file with automake to produce Makefile.in

ACLOCAL_AMFLAGS=-I m4

SUBDIRS = src examples misc
DIST_SUBDIRS = $(SUBDIRS) doc

EXTRA_DIST = libdvbpsi.spec libdvbpsi.spec.in libdvbpsi.pc.in bootstrap

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libdvbpsi.pc

AUTOMAKE_OPTIONS = foreign dist-bzip2 subdir-objects

doc-dummy:

doc: doc-dummy
	$(MAKE) -C doc doc

test_dr.c:
	$(MAKE) -C misc test_dr.c

changelog:
	cvs2cl --utc --hide-filenames --no-wrap -w --stdout -g -z9 | \
	  sed -e 's/^[^0-9]/ /' -e 's/^  *$$//' -e 's/^ \* 	/ /g' | \
	  grep -v '^ \*$$' | uniq >| ChangeLog

dist-checksum: $(DIST_TARGETS)
	rm -f *.md5 *.sha256
	for sum in $(DIST_ARCHIVES); do \
	  md5sum $$sum > $$sum.md5 && \
	  sha256sum $$sum > $$sum.sha256; \
	done

generate-header_dr:
	misc/gen_dr_h.sh > src/descriptors/dr.h
